@tailwind base;
@tailwind components;
@tailwind utilities;

/* :root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
} */

/* 自定义全局样式，例如设置 body 的背景和字体颜色 */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #1a1a1a; /* 深色背景 */
  color: #e0e0e0; /* 浅色文字 */
  overflow: hidden; /* 防止滚动条 */
}

/* 确保 Leaflet 容器有高度 */
#map {
  height: 100vh; /* 地图容器需要明确的高度 */
  width: 100%;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
/* 自定义起飞点图标样式 */
.custom-takeoff-icon {
  background-color: transparent !important; /* 使背景透明 */
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-takeoff-icon div {
  background-color: #007bff; /* 蓝色背景 */
  color: white;
  width: 32px; /* 图标大小 */
  height: 32px; /* 图标大小 */
  border-radius: 50%; /* 圆形 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem; /* S 的字体大小 */
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* 阴影效果 */
  border: 2px solid white; /* 白色边框 */
}
